/*
 * @Description: 
 * @Author: zhanyinjia
 * @Date: 2022-11-30 14:19:56
 * @LastEditors: zhanyinjia
 * @LastEditTime: 2024-07-23 10:16:41
 */
const routes = [
  {
    path: "/common",
    redirect: '/common/vModel',
    component: () =>
      import( /* webpackChunkName: "home" */ "@/views/home"),
    children: [
      {
        path: "vModel",
        name: "vModel",
        component: () =>
          import( /* webpackChunkName: "common-vModel" */ "@/views/common/vModel"),
        meta: {
          title: '自定义v-model'
        }
      },
      {
        path: "directive",
        name: "directive",
        component: () =>
          import( /* webpackChunkName: "common-directive" */ "@/views/common/directive"),
        meta: {
          title: '自定义指令'
        }
      },
      {
        path: "keepAlive",
        name: "keepAlive",
        component: () =>
          import( /* webpackChunkName: "common-keepAlive" */ "@/views/common/keepAlive"),
        meta: {
          title: 'keepAlive'
        }
      },
      {
        path: "keepAlive/:id",
        name: "keepAlive-detail",
        component: () =>
          import( /* webpackChunkName: "common-keepAlive" */ "@/views/common/keepAlive/detail"),
        meta: {
          title: 'keepAliveDetail'
        }
      },
      {
        path: "formValidate",
        name: "formValidate",
        component: () =>
          import( /* webpackChunkName: "common-formValidate" */ "@/views/common/formValidate"),
        meta: {
          title: '表单校验封装'
        }
      },
      {
        path: "form",
        name: "form",
        component: () =>
          import( /* webpackChunkName: "common-form" */ "@/views/common/form"),
        meta: {
          title: '模拟elForm'
        }
      },
      {
        path: "theme",
        name: "theme",
        component: () =>
          import( /* webpackChunkName: "common-theme" */ "@/views/common/theme"),
        meta: {
          title: '主题切换'
        }
      },
      {
        path: "file",
        name: "file",
        component: () =>
          import( /* webpackChunkName: "common-file" */ "@/views/common/fileBlobArraybuffer"),
        meta: {
          title: 'File/Blob/ArrayBuffer'
        }
      },
    ]
  },
];

export default routes
